<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<s:bean name="com.admission.util.ArrayUtils" var="data"></s:bean>
<s:set var="provinces" value="#data.getProvinceMap()"/>
<s:set var="types" value="#data.getType()"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>
<script type="text/javascript" src="../js/jquery.js"></script>
<script>
	function check(){
		var article = document.getElementById("file");
		if(article.value == ""){
			alert("请选择文件！");
			return false;
		}
		return true;
	}
	function recovery(){
	$('#recoveryMeg').text('waiting');
	$.post("<s:property value="ctx"/>/admin/recruitment-detail-admin!recovery.action", "" ,function callback(text){
             		alert(text);
             		$('#recoveryMeg').text('');
         });
	}
</script>
</head>

<body>
<s:if test="hasActionMessages()">      
         <s:iterator value="actionMessages">      
             <script language="JavaScript">      
                 alert("<s:property escape="false"/>");     
             </script>      
         </s:iterator>      
      </s:if> 
	<form action="${ctx }/admin/recruitment-detail-admin!save.action" method="post"
		name="form" onsubmit="return check()" enctype="multipart/form-data">
		<table>
			
			<tr>
				<td>表格添加：</td>
				<td><input type="file" name="recruitmentFile" id="file" /></td>
			</tr>
			<tr>
				<td>选择类型：</td>
				<td><input type="radio" name="uploadType" value='1'/>艺术类<input type="radio" name="uploadType" checked="checked" value='0'/>普通类型</td>
			</tr>
			
			<tr>
				<td><input type="button" value="刷新静态页面" onclick="recovery()" /> <span id="recoveryMeg" ></span> </td>
				<td><input type="submit" value="提交" /></td>
			</tr>
		</table>
	</form>
</body>
</html>